<?php 
class Province extends Module{
	function Province($row){
		Module::Module($row);
		
		if(User::have_permit(ADMIN_PROVINCE)){
			switch(Url::get('cmd')){
				case 'edit':
				case 'add':
					require_once 'forms/edit.php';
					$this->add_form(new EditProvinceForm());
					break;
				default: 
					require_once 'forms/list.php';
					$this->add_form(new ListProvinceForm());
					break;
			}
		}
		else{
			Url::access_denied();
		}
	}
}
?>